﻿@model System.Data.DataTable
@if (Model != null)
{
    <ul class="right_top_bot">
        @{ bool k = false;}
        @for(int i = 0;i<Model.Rows.Count; i++)
        {
            if (Model.Rows[i]["Id"].ToString().Equals(ViewBag.Menu))
            {
                k = true;
            }
        }
        @if (!k)
        {
            <a href="/Home">
                <li class="tdhome">
                    <img src="~/Images/Css/img/home.png" width="27" height="25" alt="home" border="0" />
                </li>
            </a>
        }
        else
        {
            <a href="/Home">
                <li class="tdhome2">
                    <img src="~/Images/Css/img/home.png" width="27" height="25" alt="home" border="0" />
                </li>
            </a>
        }
        @for (int i = 0; i < Model.Rows.Count; i++)
        {
            if (Model.Rows[i]["Id"].ToString().Equals(ViewBag.Menu))
            {
            <a href="@Model.Rows[i]["Url"].ToString()">
                <li class="menucuren">
                    @Model.Rows[i]["Name"].ToString()
                </li>
            </a>
            }
            else
            {
            <a href="@Model.Rows[i]["Url"].ToString()">
                <li class="nothome">
                    @Model.Rows[i]["Name"].ToString()
                </li>
            </a>
            }
        }
    </ul>
}
